<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="panel panel-default panel-intro">
        <div class="panel-heading">
            <h3 class="panel-title">编辑商家</h3>
        </div>
        <div class="panel-body">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">商家ID:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-merchant_id" class="form-control" name="row[merchant_id]" type="text" value="{$row.merchant_id|htmlentities}" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">店铺名称:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-store_name" class="form-control" name="row[store_name]" type="text" value="{$row.store_name|htmlentities}" placeholder="请输入店铺名称" data-rule="required">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">联系电话:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-phone" class="form-control" name="row[phone]" type="text" value="{$row.phone|htmlentities}" placeholder="请输入联系电话" data-rule="required;mobile">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">店铺地址:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-address" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}" placeholder="请输入店铺地址">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">状态:</label>
                <div class="col-xs-12 col-sm-8">
                    <select id="c-status" class="form-control selectpicker" name="row[status]">
                        <option value="1" {if condition="$row.status eq 1"}selected{/if}>正常</option>
                        <option value="0" {if condition="$row.status eq 0"}selected{/if}>禁用</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">认证状态:</label>
                <div class="col-xs-12 col-sm-8">
                    <select id="c-verification_status" class="form-control selectpicker" name="row[verification_status]">
                        <option value="0" {if condition="$row.verification_status eq 0"}selected{/if}>未认证</option>
                        <option value="1" {if condition="$row.verification_status eq 1"}selected{/if}>已认证</option>
                        <option value="2" {if condition="$row.verification_status eq 2"}selected{/if}>认证失败</option>
                    </select>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>